+Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
+ a virtual function to set whether the IM context should use
+ the preedit string. (#51922)
+
Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h: Remove stale FIXME comment.
+Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
+ a virtual function to set whether the IM context should use
+ the preedit string. (#51922)
+
Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h: Remove stale FIXME comment.
+Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
+ a virtual function to set whether the IM context should use
+ the preedit string. (#51922)
+
Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h: Remove stale FIXME comment.
+Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
+ a virtual function to set whether the IM context should use
+ the preedit string. (#51922)
+
Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h: Remove stale FIXME comment.
+Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
+ a virtual function to set whether the IM context should use
+ the preedit string. (#51922)
+
Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h: Remove stale FIXME comment.
+Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
+ a virtual function to set whether the IM context should use
+ the preedit string. (#51922)
+
Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h: Remove stale FIXME comment.
+Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
+ a virtual function to set whether the IM context should use
+ the preedit string. (#51922)
+
Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpango.h: Remove stale FIXME comment.
klass->set_cursor_location (context, area);
}
+/**
+ * gtk_im_context_set_use_preedit:
+ * @context: a #GtkIMContext
+ * @use_preedit: whether the IM context should use the preedit string.
+ *
+ * Sets whether the IM context should use the preedit string
+ * to display feedback. If @use_preedit is FALSE (default
+ * is TRUE), then the IM context may use some other method to display
+ * feedback, such as displaying it in a child of the root window.
+ **/
+void
+gtk_im_context_set_use_preedit (GtkIMContext *context,
+ gboolean use_preedit)
+{
+ GtkIMContextClass *klass;
+
+ g_return_if_fail (context != NULL);
+ g_return_if_fail (GTK_IS_IM_CONTEXT (context));
+
+ klass = GTK_IM_CONTEXT_GET_CLASS (context);
+ if (klass->set_use_preedit)
+ klass->set_use_preedit (context, use_preedit);
+}
void (*commit) (GtkIMContext *context, const gchar *str);
/* Virtual functions */
- void (*set_client_window) (GtkIMContext *context,
- GdkWindow *window);
- void (*get_preedit_string) (GtkIMContext *context,
- gchar **str,
- PangoAttrList **attrs,
- gint *cursor_pos);
- gboolean (*filter_keypress) (GtkIMContext *context,
- GdkEventKey *event);
- void (*focus_in) (GtkIMContext *context);
- void (*focus_out) (GtkIMContext *context);
- void (*reset) (GtkIMContext *context);
+ void (*set_client_window) (GtkIMContext *context,
+ GdkWindow *window);
+ void (*get_preedit_string) (GtkIMContext *context,
+ gchar **str,
+ PangoAttrList **attrs,
+ gint *cursor_pos);
+ gboolean (*filter_keypress) (GtkIMContext *context,
+ GdkEventKey *event);
+ void (*focus_in) (GtkIMContext *context);
+ void (*focus_out) (GtkIMContext *context);
+ void (*reset) (GtkIMContext *context);
void (*set_cursor_location) (GtkIMContext *context,
- GdkRectangle *area);
+ GdkRectangle *area);
+ void (*set_use_preedit) (GtkIMContext *context,
+ gboolean use_preedit);
};
GtkType gtk_im_context_get_type (void) G_GNUC_CONST;
void gtk_im_context_reset (GtkIMContext *context);
void gtk_im_context_set_cursor_location (GtkIMContext *context,
GdkRectangle *area);
-
+void gtk_im_context_set_use_preedit (GtkIMContext *context,
+ gboolean use_preedit);
#ifdef __cplusplus
}
#endif /* __cplusplus */